package org.bonorsoft.modules.education.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.bonorsoft.modules.education.entity.Notice;
import org.bonorsoft.modules.education.mapper.NoticeMapper;
import org.bonorsoft.modules.education.service.INoticeService;
import org.bonorsoft.modules.education.vo.NoticeVo;
import org.bonorsoft.modules.education.vo.SendVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 通知表
 * @Author: WilliamYe
 * @Date:   2021-06-22
 * @Version: V1.0
 */
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements INoticeService {

    @Override
    public IPage<NoticeVo> paging(Page<Notice> page, QueryWrapper<Notice> queryWrapper) {
        return this.baseMapper.paging(page, queryWrapper);
    }

    @Override
    public IPage<NoticeVo> listPaging(Page<Notice> page, QueryWrapper<Notice> queryWrapper) {
        return this.baseMapper.listPaging(page, queryWrapper);
    }

    @Override
    public Notice getByAddresseeId(String addresseeId) {
        return this.baseMapper.getByAddresseeId(addresseeId);
    }

    @Override
    public IPage<SendVo> sendPaging(Page<Notice> page, QueryWrapper<Notice> queryWrapper) {
        return this.baseMapper.sendPaging(page,queryWrapper);
    }

    @Override
    public List<SendVo> mobileSendList(String noticeSender) {
        return this.baseMapper.mobileSendList(noticeSender);
    }

    @Override
    public List<NoticeVo> mobileDraftList(String noticeSender) {
        return this.baseMapper.mobileDraftList(noticeSender);
    }

    @Override
    public List<NoticeVo> mobileDeleteList(String noticeSender) {
        return this.baseMapper.mobileDeleteList(noticeSender);
    }
}
